

import 'package:flutter/cupertino.dart';

class PageUtil{
  static Element? findChild(Element e, Widget w) {
    Element? child;
    void visit(Element element) {
      if (w == element.widget)
        child = element;
      else
        element.visitChildren(visit);
    }

    visit(e);
    return child;
  }
}